From: Florian Müllner Date: Wed, 1 Jul 2020 14:55:59 +0000 (+0200) Subject: systemActions: Reindent properties X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~684^2^2~53 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=0c5716b0187fe2de37a59ae529773df548c2769f;p=gnome-shell.git systemActions: Reindent properties ... so we can add another property using the new coding style without making surrounding code terribly inconsistent. https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/2202 --- diff --git a/js/misc/systemActions.js b/js/misc/systemActions.js index 4f28a72f0..fe55f061d 100644 --- a/js/misc/systemActions.js +++ b/js/misc/systemActions.js @@ -40,41 +40,34 @@ function getDefault() { const SystemActions = GObject.registerClass({ Properties: { - 'can-power-off': GObject.ParamSpec.boolean('can-power-off', - 'can-power-off', - 'can-power-off', - GObject.ParamFlags.READABLE, - false), - 'can-suspend': GObject.ParamSpec.boolean('can-suspend', - 'can-suspend', - 'can-suspend', - GObject.ParamFlags.READABLE, - false), - 'can-lock-screen': GObject.ParamSpec.boolean('can-lock-screen', - 'can-lock-screen', - 'can-lock-screen', - GObject.ParamFlags.READABLE, - false), - 'can-switch-user': GObject.ParamSpec.boolean('can-switch-user', - 'can-switch-user', - 'can-switch-user', - GObject.ParamFlags.READABLE, - false), - 'can-logout': GObject.ParamSpec.boolean('can-logout', - 'can-logout', - 'can-logout', - GObject.ParamFlags.READABLE, - false), - 'can-lock-orientation': GObject.ParamSpec.boolean('can-lock-orientation', - 'can-lock-orientation', - 'can-lock-orientation', - GObject.ParamFlags.READABLE, - false), - 'orientation-lock-icon': GObject.ParamSpec.string('orientation-lock-icon', - 'orientation-lock-icon', - 'orientation-lock-icon', - GObject.ParamFlags.READWRITE, - null), + 'can-power-off': GObject.ParamSpec.boolean( + 'can-power-off', 'can-power-off', 'can-power-off', + GObject.ParamFlags.READABLE, + false), + 'can-suspend': GObject.ParamSpec.boolean( + 'can-suspend', 'can-suspend', 'can-suspend', + GObject.ParamFlags.READABLE, + false), + 'can-lock-screen': GObject.ParamSpec.boolean( + 'can-lock-screen', 'can-lock-screen', 'can-lock-screen', + GObject.ParamFlags.READABLE, + false), + 'can-switch-user': GObject.ParamSpec.boolean( + 'can-switch-user', 'can-switch-user', 'can-switch-user', + GObject.ParamFlags.READABLE, + false), + 'can-logout': GObject.ParamSpec.boolean( + 'can-logout', 'can-logout', 'can-logout', + GObject.ParamFlags.READABLE, + false), + 'can-lock-orientation': GObject.ParamSpec.boolean( + 'can-lock-orientation', 'can-lock-orientation', 'can-lock-orientation', + GObject.ParamFlags.READABLE, + false), + 'orientation-lock-icon': GObject.ParamSpec.string( + 'orientation-lock-icon', 'orientation-lock-icon', 'orientation-lock-icon', + GObject.ParamFlags.READWRITE, + null), }, }, class SystemActions extends GObject.Object { _init() {